A phase diagram is a graphical representation that shows the different phases or states of matter that a substance can exist in under different conditions of temperature and pressure. It helps to understand how substances can change from solid to liquid to gas and how the conditions affect these changes.